package com.dasberg.gwt.dispatch;

import com.dasberg.gwt.command.GetFooAction;
import com.dasberg.gwt.command.GetFooResult;
import com.dasberg.gwt.command.Result;

/**
 * Test Handler for the Get Foo Action.
 * @author mischa
 */
@BindHandler
public class GetFooHandler extends AbstractHandler<GetFooAction> {
    /** {@inheritDoc}. */
    public Result process(GetFooAction getFooAction) throws ActionException {
        return new GetFooResult();
    }

    /** {@inheritDoc}. */
    public void rollback(GetFooAction getFooAction) {
    }
}
